Update plot API to flat functions (PyAutoFit PR #1174)#19
Merged
Conversation
Replace NestPlotter, MCMCPlotter, MLEPlotter class instantiation with module-level aplt.corner_cornerpy() and aplt.corner_anesthetic() calls, matching the PyAutoFit PR #1174 API changes. Update docstrings across all plot scripts to reference the new function-based interface. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Jammy2211
added a commit
that referenced
this pull request
Apr 9, 2026
Update plot API to flat functions (PyAutoFit PR #1174)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace class-based plotter API (
NestPlotter,MCMCPlotter,MLEPlotter) with module-level functions (aplt.corner_cornerpy(),aplt.corner_anesthetic()), matching the PyAutoFit PR PyAutoLabs/PyAutoFit#1174 API changes. Update all docstrings to reference the new function-based interface.Scripts Changed
scripts/cookbooks/samples.py— replacedMCMCPlotterinstantiation withaplt.corner_cornerpy()scripts/cookbooks/search.py— replacedMCMCPlotterinstantiation withaplt.corner_cornerpy(), updated docstringscripts/overview/overview_1_the_basics.py— replacedNestPlotterinstantiation withaplt.corner_anesthetic()scripts/howtofit/chapter_1_introduction/tutorial_5_results_and_samples.py— replacedMCMCPlotterwithaplt.corner_cornerpy(), updated docstringscripts/howtofit/chapter_3_graphical_models/tutorial_1_individual_models.py— replacedNestPlotterwithaplt.corner_cornerpy()scripts/howtofit/chapter_3_graphical_models/tutorial_3_graphical_benefits.py— replacedNestPlotterwithaplt.corner_cornerpy()scripts/plot/DynestyPlotter.py— updated docstrings (code already used new API)scripts/plot/EmceePlotter.py— updated docstrings (code already used new API)scripts/plot/NautilusPlotter.py— updated docstrings (code already used new API)scripts/plot/UltraNestPlotter.py— updated docstrings (code already used new API)scripts/plot/ZeusPlotter.py— updated docstrings (code already used new API)scripts/plot/PySwarmsPlotter.py— updated docstrings (code already used new API)Test Plan
grepconfirms zero hits foraplt.NestPlotter,aplt.MCMCPlotter,aplt.MLEPlotter)🤖 Generated with Claude Code